package com.xf.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xf.common.core.entity.dmp.DmpOauthClientDetails;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
*@author JoeyLiu
*@create 2022-03-29 14:57
*/
@Mapper
public interface DmpOauthClientDetailsMapper extends BaseMapper<DmpOauthClientDetails> {
    /**
     * delete by primary key
     * @param clientId primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(String clientId);

    /**
     * select by primary key
     * @param clientId primary key
     * @return object by primary key
     */
    DmpOauthClientDetails selectByPrimaryKey(String clientId);

    int updateBatch(List<DmpOauthClientDetails> list);

    int updateBatchSelective(List<DmpOauthClientDetails> list);

    int batchInsert(@Param("list") List<DmpOauthClientDetails> list);

    int insertOrUpdate(DmpOauthClientDetails record);

    int insertOrUpdateSelective(DmpOauthClientDetails record);
}